package com.stars.easyms.logger.support.logback.sift;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.joran.event.SaxEvent;
import ch.qos.logback.core.sift.AbstractAppenderFactoryUsingJoran;
import ch.qos.logback.core.sift.SiftingJoranConfiguratorBase;
import com.stars.easyms.logger.support.EasyMsOverride;

import java.util.List;
import java.util.Map;

/**
 * <p>className: EasyMsAppenderFactoryUsingJoran</p>
 * <p>description: 重写AppenderFactoryUsingJoran类</p>
 *
 * @author guoguifang
 * @date 2019-08-20 16:26
 * @since 1.3.0
 */
public final class EasyMsAppenderFactoryUsingJoran extends AbstractAppenderFactoryUsingJoran<ILoggingEvent> implements EasyMsOverride {

    EasyMsAppenderFactoryUsingJoran(List<SaxEvent> eventList, String key, Map<String, String> parentPropertyMap) {
        super(eventList, key, parentPropertyMap);
    }

    @Override
    public SiftingJoranConfiguratorBase<ILoggingEvent> getSiftingJoranConfigurator(String discriminatingValue) {
        return new EasyMsSiftingJoranConfigurator(key, discriminatingValue, parentPropertyMap);
    }
}